<template>
  <div id="app">
    <el-config-provider :locale="zhCn" size='default'>
      <router-view />
    </el-config-provider>
  </div>
</template>
<script setup>
import { useStore } from 'vuex'
// 设置语言
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'


// 加载之前设定的皮肤模式
import switchTheme from '@/utils/switchTheme'
const theme = localStorage.getItem('theme')
document.documentElement.setAttribute('data-theme', theme)
useStore().commit('app/UPDATE_THEME', theme)
switchTheme(theme || 'defaultTheme')
switchTheme('defaultTheme')

</script>

<style>
@import "//at.alicdn.com/t/c/font_3715897_o5qc85mpcms.css";

/* @import "~@/assets/iconfont/iconfont.css"; */
</style>
<style lang="scss">

/* 表单输入框并排插入别的内容 */
.formItemFlex .el-form-item__content {
  display: flex;
  align-items: center;
}
.formItemFlex .el-form-item__content .el-input {
  flex: 1;
}

.hide {
  display: none;
}

.swiper-button-prev{
  position:absolute !important;
  left: 0 !important;
}

</style>
